package com.common.security.db.repository;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.common.core.base.entity.SysMenu;
import com.common.security.db.mapper.SysMenuMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class SysMenuRepo extends ServiceImpl<SysMenuMapper, SysMenu> {
    public List<SysMenu> getAllMenus() {
        return this.lambdaQuery()
                .eq(SysMenu::getStatus, 1)
                .list();
    }
}
